import axios from 'axios';

const API_BASE_URL = 'http://localhost:8000/api/timetable/';

export const fetchTimetable = async () => {
    const response = await axios.get(API_BASE_URL);
    return response.data;
};

export const updateTimetableEntry = async (id, entry) => {
    const response = await axios.put(`${API_BASE_URL}${id}/`, entry);
    return response.data;
};